<?php
/*
 * Plugin Hook: editor_fast
 * Plugin Name: nicEdit编辑器
 * Author: 系统自带插件
 * Version: 1.0
 * Plugin URI: about:blank
 * Description: nicEdit编辑器，一个快速编辑器。
 */
if(!defined('IN_MICECMS')){header("HTTP/1.0 404 Not Found");die();}
function nicEdit($isupload){
	$upload='';
	if($isupload==1){
		$upload='<a href="javascript:showMe(document.body.scrollTop)"><img src="'.MICE_URL.MICE_TPL.'/admin/imgs/upfile.gif" border="0"></a>&nbsp;&nbsp;<a href="javascript:showBF(document.body.scrollTop);"><img src="'.MICE_URL.MICE_TPL.'/admin/imgs/browsefile.gif" border="0"></a>';
	}
	$dir=MICE_URL.'plugins/nicEdit/';

	return $upload.'<script src="'.$dir.'nicEdit.js" type="text/javascript"></script>
	<textarea cols="60" rows="10" style="width:350px;height:200px;" id="MCEname" name="MCEname">MCEcontent</textarea>
	<script type="text/javascript">new nicEditor({fullPanel : true,iconsPath : "'.$dir.'nicEditorIcons.gif"}).panelInstance("MCEname");</script>';
}
?>